package cn.itcast.dao;

import cn.itcast.pojo.AdminUser;
import cn.itcast.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @author skycat
 * @time 2021/12/9
 */
//操作用户数据库
public interface UserDao {

    public List<User> findAll();

    public AdminUser findAdminUserByUserNameAndPassword(AdminUser user);

    void addUser(User user);

    void deleteUserById(int id);

    User findUserById(int id);

    void updateUser(User user);

    int findUserCount(Map<String, String[]> condition);

    List<User> findUserListByPage(int start, int rows, Map<String, String[]> condition);
}
